package com.lrkj.ureport.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 报分组对象 tb_report_group
 *
 * @author yajun_ren
 * @date 2022-04-01
 */
@Data
public class ReportGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 模块类型 */
    @Excel(name = "模块类型")
    private String modelType;

    /** 分组名称 */
    @Excel(name = "分组名称")
    private String groupName;

    /** 排序序号 */
    @Excel(name = "排序序号")
    private Long orderNum;

    //报表模板列表
    private List<ReportConfig> reportConfigs;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("modelType", getModelType())
            .append("groupName", getGroupName())
            .append("orderNum", getOrderNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
